SciTECO Windows builds will also work in Wine. This is useful when cross-compiling, developing and debugging the Windows port under Linux.
LINES
and COLS
as described below is not necessary for that port. However, you may encounter problems with the window size if Wine allocates a too large screen buffer for the program - SciTECO does currently not react to screen buffer changes on ncurses/MinGW and PDCurses/win32.To run the PDCurses win32 port (plain console mode application), you must launch the application using wineconsole
and specify the LINES
and COLS
environment variables (may be a bug in Wine or PDCurses):
$ LINES=25 COLS=80 wineconsole sciteco.exe
This will create an X11 window emulating the Windows console. Specifying wineconsole --backend=curses
enables a console emulation using Curses. In either case, SciTECO will not react to window size changes and stay at 25 lines and 80 columns.
It is possible to cross-debug the Windows port under Linux using the cross-gdb and native win32 gdbserver.exe
that comes with your MinGW64 toolchain.
To do that, simply run the gdbserver.exe
under Wine like this:
$ LINES=25 COLS=80 wineconsole /usr/share/win32/gdbserver :8000 sciteco.exe
This also works with stripped binaries. In another console load the sciteco.exe
(with debugging symbols!) into the cross debugger (usually i686-w64-mingw32-gdb
) and connect to the server via target remote :8000
.
For more details, see TODO.
14B Sep 28 21:20 ../